//引入mysql
var mysql = require('mysql');

//创建链接
var connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: '0818',
    database: 'vuexms'
});

//将模块暴露出去
module.exports = connection;